import dayjs from 'dayjs'

export const formatDate = (date, split = "YYYY-MM-DD") => {
    if (!date) {
        return ''
    } else {
        return dayjs(date).format(split)
    }
}